
<div class"">
	<Form method="get">
	<p>
		<input type="radio" <? echo ($flag=="A") ? 'checked="checked"' : "" ?> name="flag" value="A"> All
		<input type="radio" <? echo ($flag=="C") ? 'checked="checked"' : "" ?> name="flag" value="C"> Completed
		<input type="radio" <? echo ($flag=="F") ? 'checked="checked"' : "" ?> name="flag" value="F"> Failed
		</p>
	<p><Button type="submit">Search</Button></p>
</form>
</div>
<div class="pagination">
        <ul class="pagination">
            <?
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>

<table class="table table-fixed" style="width:100%"> <!-- cellspacing='0' is important, must stay -->

	<!-- Table Header -->

	<thead>
		<tr>
			<th style="width:70%">เลขที่เอกสาร</th>
			<th style="width:20%">Status</th>
			<th style="width:10%">ดูข้อมูล</th>
			
		</tr>
	</thead>
	<!-- Table Header -->
	
	<!-- Table Body -->
	<tbody>
<?
	if(!empty($dataList)){
	?>
		<?
		
		foreach($dataList as $in=>$val){
		?>
			<tr>
				<td style="width:150px"><?php echo $val->ORDER_NO ?></td>
				<td style="width:150px" align="center"><?php echo getSaleStatus($val->SALES_ORDER_FLAG)?></td>
				<td><a target="_blank" href="<?php echo base_url() ?>order/viewOrder?orderid=<?php echo $val->ORDER_NO?>">View Data</a></td>				
			</tr>
		<?
		}
		?>
<?
	}else{
	?>
		<tr>
			<td colspan="11"><h2>ไม่พบข้อมูล</h2></td>
		</tr>
	<?
	}
	?>
	
	</tbody>
	
	<!-- Table Body -->

</table>
<div class="container">
<div class=" pagination">
        <ul class="pagination">
            <?
			 echo $pagination->create_links();
            ?>
        </ul>    
    </div>
    
